package cn.itcast.mq.config;


import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MQConfig {
    @Bean
    public Queue simpleQueue(){
        return new Queue("simple.queue",true);
    }
    @Bean
    public Queue fanoutQueue1(){
        return new Queue("fanout.queue1",true);
    }
    @Bean
    public Queue fanoutQueue2(){
        return new Queue("fanout.queue2",true);
    }
}
